-
Notifications
You must be signed in to change notification settings - Fork 4k
GH-47022: [Python] Support unsigned dictionary indices in pandas conversion #48451
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
|
0e08f57 to
531b4de
Compare
531b4de to
f18acd8
Compare
|
|
f18acd8 to
18ccb7e
Compare
|
|
3 similar comments
|
|
|
|
|
|
27a89f3 to
40f6ef1
Compare
40f6ef1 to
7e384a2
Compare
|
Should be ready for a look. |
adamreeve
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @HyukjinKwon, this looks good to me but I have one comment about the error message.
1e3167e to
1c08e54
Compare
|
Thanks for adding this! |
|
Thank you @adamreeve !!!!!!!!!!!!!!!! |
|
After merging your PR, Conbench analyzed the 3 benchmarking runs that have been run so far on merge-commit de6eb89. There were no benchmark performance regressions. 🎉 The full Conbench report has more details. It also includes information about 14 possible false positives for unstable benchmarks that are known to sometimes produce them. |
Rationale for this change
This is the ticket mentioned in #7659 which implements unsigned dictionary indices in pandas conversion.
What changes are included in this PR?
Implements unsigned dictionary indices by upcasting to signed ints in pandas conversion
Are these changes tested?
Yes via:
Are there any user-facing changes?
Yes,
pd.Categorical.from_codes(indices, categories=dictionary)with unsigned integers should work now as demonstrated in the tests.